package com.example.lab2.service;


import com.example.lab2.api.dto.EmployeeDTO;
import com.example.lab2.domain.entity.Employee;

import java.util.List;

public interface EmployeeService {
    List<Employee> listEmployees(EmployeeDTO employeeDTO);

    Employee findEmployeeById(Integer employeeId);

    Employee getEmployeeWithLeader(EmployeeDTO employeeDTO);

    /**
     * 获取下属员工
     * @param employeeDTO
     * @return
     */
    List<Employee> getEmployeeList(EmployeeDTO employeeDTO);

    void updateEmployee(EmployeeDTO employeeDTO);

    void insertEmployee(EmployeeDTO employeeDTO);
}
